home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 November / Maximum CD 2000 Nov.iso / AofE-Conquerers / age2xtrial.exe / CABFILE / MSGAME.CAB / Data / gamedata_x1.drs / Unnamed File 000022.bina < prev    next >
Text File  |  2000-07-18  |  5KB  |  246 lines

  1. ;make sure we have allies
  2. (defrule
  3.     (difficulty < easy)
  4.     (game-time < 30)
  5.     (or
  6.         (player-computer any-ally)
  7.         (player-human any-ally)
  8.     )
  9. =>
  10.     (set-goal personality NOTICE)
  11.     (disable-self)
  12. )
  13.  
  14. (defrule
  15.     (game-time > 30)
  16.     (not (player-in-game any-ally) )
  17. =>
  18.     (set-goal personality 0)
  19.     (disable-self)
  20. )
  21.  
  22. (defrule
  23.     (taunt-detected any-ally 221)
  24. =>
  25.     (set-goal rush-control CASTLE)
  26.     (set-goal personality 0)
  27.     (acknowledge-taunt this-any-ally 221)
  28.     (disable-self)
  29. )
  30.  
  31. (defrule
  32.     (goal personality NOTICE)
  33. =>
  34.     (set-goal personality 1)
  35.     (chat-to-player-using-id every-ally 22401)    ;221
  36.     (disable-self)
  37. )
  38.  
  39. ;don't rush if we're a feeder also no wonder
  40. (defrule
  41.     (goal personality 1)
  42.     (current-age < imperial-age)
  43.     (not (goal rush-control IMPERIAL) )
  44. =>
  45.     (set-goal rush-control IMPERIAL)
  46. )
  47.  
  48. (defrule
  49.     (goal personality 1)
  50.     (goal wonder-attempt POSSIBLE)
  51. =>
  52.     (set-goal wonder-attempt NO)
  53. )
  54.  
  55. (defrule
  56.     (goal personality 1)
  57.     (or
  58.         (and
  59.             (current-age == feudal-age)
  60.             (players-current-age any-ally >= castle-age)
  61.         )
  62.         (and
  63.             (current-age == castle-age)
  64.             (players-current-age any-ally == imperial-age)
  65.         )
  66.     )
  67. =>
  68.     (set-goal upgrade-conflict NOTICE)
  69. )
  70.  
  71. (defrule
  72.     (goal personality 1)
  73.     (building-type-count market > 0)
  74.     (players-population any-ally > 10)
  75. =>
  76.     (chat-to-player-using-id every-ally 22072)
  77.     (chat-to-player-using-id every-ally 22073)
  78.         ;"39 I shall tribute to thee as many resources as I can muster."
  79.         ;"Go forth and thrash our opponents!"
  80.     (disable-self)
  81. )
  82.  
  83. ;stop being a feeder if your allies are weenies
  84. (defrule
  85.     (goal personality 1)
  86.     (game-time > 900)
  87.     (or
  88.         (players-population every-ally <= 10)
  89.         (not (player-in-game any-ally) )
  90.     )
  91. =>
  92.     (set-goal personality 20)
  93.     (set-goal rush-control IMPERIAL)
  94.     (chat-to-player-using-id every-ally 22074)
  95.         ;"41 Whoa, I'll not feed such puny allies! 'Tis every man for himself!"
  96.     (disable-self)
  97. )
  98.  
  99.     #load-if-not-defined TEAMS-LOCKED
  100.     (defrule
  101.         (goal personality 20)
  102.         (difficulty <= hard)
  103.         (players-stance any-human ally)
  104.     =>
  105.         (chat-to-player-using-id every-ally 22075)
  106.             ;"40 In fact, I'm switching sides! Fare thee well, losers."
  107.         (set-stance every-computer ally)
  108.         (set-stance this-any-human enemy)
  109.         (set-goal personality 10)
  110.         (disable-self)
  111.     )
  112.     #end-if
  113.  
  114. ;***********************
  115. ;TRIBUTE
  116. (defrule
  117.     (true)
  118. =>
  119.     (set-goal 29 YES)
  120.     (disable-self)
  121. )
  122.  
  123. (defrule
  124.     (goal personality 1)
  125.     (goal 29 NO)
  126. =>
  127.     (set-goal 29 YES)    ; ok to tribute!
  128. )
  129.  
  130. (defrule
  131.     (goal personality 1)
  132.     (town-under-attack)
  133. =>
  134.     (set-goal 29 NO)    ; NOT ok to tribute!
  135. )
  136.  
  137. (defrule
  138.     (goal personality 1)
  139.     (goal 29 YES)
  140.     (taunt-detected any-ally 4)
  141.     (wood-amount > 100)
  142. =>
  143.     (release-escrow wood)
  144.     (tribute-to-player this-any-ally wood 100)
  145.     (acknowledge-taunt this-any-ally 4)
  146.     (chat-local-to-self "Tribute wood")
  147. )
  148.  
  149. (defrule
  150.     (goal personality 1)
  151.     (goal 29 YES)
  152.     (taunt-detected any-ally 3)
  153.     (food-amount > 100)
  154. =>
  155.     (release-escrow food)
  156.     (tribute-to-player this-any-ally food 100)
  157.     (acknowledge-taunt this-any-ally 3)
  158.     (chat-local-to-self "Tribute food")
  159. )
  160.  
  161. (defrule
  162.     (goal personality 1)
  163.     (goal 29 YES)
  164.     (taunt-detected any-ally 5)
  165.     (gold-amount > 100)
  166. =>
  167.     (release-escrow gold)
  168.     (tribute-to-player this-any-ally gold 100)
  169.     (acknowledge-taunt this-any-ally 5)
  170.     (chat-local-to-self "Tribute gold")
  171. )
  172.  
  173. (defrule
  174.     (goal personality 1)
  175.     (goal 29 YES)
  176.     (taunt-detected any-ally 6)
  177.     (stone-amount > 100)
  178. =>
  179.     (release-escrow stone)
  180.     (tribute-to-player this-any-ally stone 100)
  181.     (acknowledge-taunt this-any-ally 6)
  182.     (chat-local-to-self "Tribute stone")
  183. )
  184.  
  185. (defrule
  186.     (goal personality 1)
  187.     (goal 29 YES)
  188.     (player-in-game any-ally)
  189.     (building-type-count market > 0)
  190.     (current-age-time < 240)
  191.     (wood-amount > 300)
  192. =>
  193.     (release-escrow wood)
  194.     (tribute-to-player this-any-ally wood 100)
  195.     (chat-to-player-using-id this-any-ally 22076)
  196.         ;"39 Here art some wood!"
  197.     (chat-local-to-self "Tribute wood")
  198. )
  199.  
  200. (defrule
  201.     (goal personality 1)
  202.     (goal 29 YES)
  203.     (player-in-game any-ally)
  204.     (building-type-count market > 0)
  205.     (current-age-time < 240)
  206.     (food-amount > 200)
  207. =>
  208.     (release-escrow food)
  209.     (tribute-to-player this-any-ally food 100)
  210.     (chat-to-player-using-id this-any-ally 22077)
  211.         ;"39 Here art some food!"
  212.     (chat-local-to-self "Tribute food")
  213. )
  214.  
  215. (defrule
  216.     (goal personality 1)
  217.     (goal 29 YES)
  218.     (player-in-game any-ally)
  219.     (building-type-count market > 0)
  220.     (current-age-time < 240)
  221.     (gold-amount > 200)
  222. =>
  223.     (release-escrow gold)
  224.     (tribute-to-player this-any-ally gold 100)
  225.     (chat-to-player-using-id this-any-ally 22078)
  226.         ;"39 Here art some gold!"
  227.     (chat-local-to-self "Tribute gold")
  228. )
  229.  
  230. (defrule
  231.     (goal personality 1)
  232.     (goal 29 YES)
  233.     (player-in-game any-ally)
  234.     (building-type-count market > 0)
  235.     (current-age-time < 240)
  236.     (stone-amount > 100)
  237. =>
  238.     (release-escrow stone)
  239.     (tribute-to-player this-any-ally stone 100)
  240.     (chat-to-player-using-id this-any-ally 22079)
  241.         ;"39 Here art some stone!"
  242.     (chat-local-to-self "Tribute stone")
  243. )
  244.  
  245.  
  246.